# Contributor: Matthias Ahouansou <matthias@ahouansou.cz>
# Maintainer: Matthias Ahouansou <matthias@ahouansou.cz>
pkgname=tree-sitter-dart
pkgver=0_git20230123
_gitrev=23e3921190eb9746cec64167f6110c987c7f95c6
pkgrel=1
pkgdesc="A tree-sitter grammar written for the dart programming language"
url="https://github.com/ast-grep/tree-sitter-dart"
arch="all"
license="MIT"
makedepends="tree-sitter-dev"
install_if="tree-sitter-grammars"
source="$pkgname-$_gitrev.tar.gz::https://github.com/ast-grep/tree-sitter-dart/archive/$_gitrev.tar.gz"
builddir="$srcdir/$pkgname-$_gitrev"
options="!check"  # no tests for shared lib

build() {
	abuild-tree-sitter build
}

package() {
	DESTDIR="$pkgdir" abuild-tree-sitter install
}

sha512sums="
bbbffe14d62791534f2f99af5874b49244e26bd6b66fc2c7bd48b64d170845baaf72e32d8e6018b6a631cd98dec9563d31f50c67c8f3c50aeb0eaa30b522df3d  tree-sitter-dart-23e3921190eb9746cec64167f6110c987c7f95c6.tar.gz
"
